package com.xxljob.demo.core.route.stragety;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.biz.model.TriggerParam;
import com.xxljob.demo.core.route.ExecutorRouter;

import java.util.List;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2022/5/21 15:51
 */
public class ExecutorRouteFirst extends ExecutorRouter {
    @Override
    public ReturnT<String> route(TriggerParam triggerParam, List<String> addressList) {
        return new ReturnT<String>(addressList.get(0));
    }
}
